package controler;

import java.awt.EventQueue;

import view.MainWindow;

public class Controler {

    /**
     * @param args
     */
    public static void main(String[] args) {
        MainWindow window = new MainWindow();
        CompleteLogger.getLogger().setWindow(window);
        Controler.openWindow(window);

        new PLC(window);

    }

    public static void openWindow(final MainWindow frame) {
        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    frame.pack();
                    frame.setVisible(true);

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

}
